<div class="tableform">
  <h5><{t}>您可以从下列预设的商品类型中选择导入<{/t}></h5></div>


  <div class="division clearfix" style="float:left;margin-right:0;padding-right:30px;overflow:hidden">
  <div id="typeLoding" align="center" valign="top" style="overflow:hidden">
  <div style="width:300px;"><BR><BR><{t}>正在加载预设商品类型...<{/t}></div>
 
  </div>
</div>

<div id="newtypediv" class="division" style="float:left;margin-right:30px;margin-left:0;border-left:none;background:#F1F4F8;display:none;">
  <div style="height:80px;text-align:center;width:200px">
      <a class="lnk" href="index.php?app=b2c&ctl=admin_goods_type&act=set"><{img src="bundle/goods_type_custom.gif" app="desktop"}><br><{t}>自定义商品类型<{/t}></a>
  </div>


</div>
<script language="javascript">
W.page('index.php?app=b2c&ctl=admin_goods_type&act=fetchProtoTypes&p[0]=index.php',{update:'typeLoding',
onComplete:function(){
    $('newtypediv').setStyle('display','block');
	var images = ['<{$env.app.res_url}>/bundle/camera-icon.gif','<{$env.app.res_url}>/bundle/vidicon-icon.gif','<{$env.app.res_url}>/bundle/mobile-icon.gif','<{$env.app.res_url}>/bundle/bookcomputer-icon.gif','<{$env.app.res_url}>/bundle/book-icon.gif','<{$env.app.res_url}>/bundle/game-icon.gif',]; 
	$('typeLoding').getElements('div img').each(function(item,i){
		item.set('src',images[i]);
		item.addEvent('click',function(){
			$('newtypediv').addClass('goodsclass-hide');
		});
	});
}
});
function feedFetch(link,qs){
  $('newtypediv').innerHTML = '';
  W.page('index.php?app=b2c&ctl=admin_goods_type&act=fetchProtoTypes&p[0]='+link+'&p[1]='+qs,{update:'typeLoding'});
}
function loadLocalBrands(){
  W.page('index.php?app=b2c&ctl=admin_brand&act=getCheckboxList',{update:'localBrands'});
}
</script>
